Partner: P-31010 - Test AG from 1010: Create
Legal Person As Partner| name | value |
|---|---|
| partnerName | Test AG |
| validFrom | 2020-10-15 |
| newStatus | ACTIVE |
| membershipFeeBillable | true |
HTTP GET "/api/hs/office/partners?name=Test+AG" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "215088cb-041a-4cc6-8657-7e949cf8dd5f", // Partner: P-31010 - Test AG
"partnerNumber" : "P-31010",
"partnerRel" : {
"uuid" : "9c94cdf2-a746-4438-af53-664b87483a65", // partnerRelationUuid
"anchor" : {
"uuid" : "c43fc218-ae0e-4d6d-afc9-528d9861c2eb", // Person: Hostsharing eG
"personType" : "LEGAL_PERSON",
"tradeName" : "Hostsharing eG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "efe3662a-02d9-4fa9-a4f0-29dfd893fd78", // Person: Test AG
"personType" : "LEGAL_PERSON",
"tradeName" : "Test AG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"type" : "PARTNER",
"mark" : null,
"contact" : {
"uuid" : "7e8be3df-3e34-4548-8b35-d630a30bfd4a", // Contact: Test AG - China
"caption" : "Test AG - China",
"postalAddress" : {
"country" : "China",
"province" : "Guangdong Province",
"city" : "Dongguan City",
"street" : "No.2 Commercial Second Street",
"district" : "Niushan Wei Wu",
"department" : "Executive Board",
"building" : "Thi Chi Koh Building"
},
"emailAddresses" : {
"main" : "norden@test-ag.example.org"
},
"phoneNumbers" : {
"phone" : "++15 999 654321"
}
}
},
"details" : {
"uuid" : "06e11b1f-3c8c-464e-83e8-a9f761b853d3",
"registrationOffice" : "Registergericht Hamburg",
"registrationNumber" : "1234567",
"birthName" : null,
"birthPlace" : null,
"birthday" : null,
"dateOfDeath" : null
}
} ]
In production data, this query could result in multiple outputs. In that case, you have to find out which is the right one.
HTTP POST "/api/hs/office/memberships" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
<<EOF
{
"partner.uuid" : "215088cb-041a-4cc6-8657-7e949cf8dd5f", // Partner: P-31010 - Test AG
"memberNumberSuffix" : "00",
"status" : "ACTIVE",
"validFrom" : "2020-10-15",
"membershipFeeBillable" : "true"
}
EOF
=> status: 201 CREATED a05b3e87-6a11-4096-9fba-ae7da4271ee3
HTTP GET "/api/hs/office/memberships/a05b3e87-6a11-4096-9fba-ae7da4271ee3" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
{
"uuid" : "a05b3e87-6a11-4096-9fba-ae7da4271ee3",
"partner" : {
"uuid" : "215088cb-041a-4cc6-8657-7e949cf8dd5f", // Partner: P-31010 - Test AG
"partnerNumber" : "P-31010",
"partnerRel" : {
"uuid" : "9c94cdf2-a746-4438-af53-664b87483a65", // partnerRelationUuid
"anchor" : {
"uuid" : "c43fc218-ae0e-4d6d-afc9-528d9861c2eb", // Person: Hostsharing eG
"personType" : "LEGAL_PERSON",
"tradeName" : "Hostsharing eG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "efe3662a-02d9-4fa9-a4f0-29dfd893fd78", // Person: Test AG
"personType" : "LEGAL_PERSON",
"tradeName" : "Test AG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"type" : "PARTNER",
"mark" : null,
"contact" : {
"uuid" : "7e8be3df-3e34-4548-8b35-d630a30bfd4a", // Contact: Test AG - China
"caption" : "Test AG - China",
"postalAddress" : {
"country" : "China",
"province" : "Guangdong Province",
"city" : "Dongguan City",
"street" : "No.2 Commercial Second Street",
"district" : "Niushan Wei Wu",
"department" : "Executive Board",
"building" : "Thi Chi Koh Building"
},
"emailAddresses" : {
"main" : "norden@test-ag.example.org"
},
"phoneNumbers" : {
"phone" : "++15 999 654321"
}
}
},
"details" : {
"uuid" : "06e11b1f-3c8c-464e-83e8-a9f761b853d3",
"registrationOffice" : "Registergericht Hamburg",
"registrationNumber" : "1234567",
"birthName" : null,
"birthPlace" : null,
"birthday" : null,
"dateOfDeath" : null
}
},
"mainDebitor" : null,
"memberNumber" : "M-3101000",
"memberNumberSuffix" : "00",
"validFrom" : "2020-10-15",
"validTo" : null,
"status" : "ACTIVE",
"membershipFeeBillable" : true
}
generated on 2026-08-10 04:42:25 for branch HEAD